﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="SelfService.aspx.cs" Inherits="Default2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
    <script src="../Scripts/jquery-1.8.2.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-ui-1.9.0.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#admin_tabs").tabs({ active: '<%= tabId %>' }).removeClass("ui-widget");
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <h2>
        Login gegevens beheren
    </h2>
    <p>
        Hier kun je je persoonlijke login gegevens beheren.
    </p>
    <div id="admin_tabs" style="top: 10px">
        <ul>
            <li><a href="#tab_password_forgotten">Wachtwoord vergeten</a></li>
            <li><a href="#tab_password">Wachtwoord veranderen</a></li>
            <li><a href="#tab_email">Email & Veiligheidsvraag</a></li>
        </ul>
        <div id="tab_password_forgotten">
            <asp:PasswordRecovery ID="PasswordRecovery1" runat="server" EnableViewState="false" RenderOuterTable="false">
                <UserNameTemplate>
                    <span class="failureNotification">
                        <asp:Literal ID="FailureText" runat="server"></asp:Literal>
                    </span>
                    <asp:ValidationSummary ID="PasswordRecoveryValidationSummary" runat="server" CssClass="failureNotification"
                        ValidationGroup="PasswordRecoveryValidationGroup" />
                    <div class="accountInfo">
                        <fieldset class="forgotPassword">
                            <legend>Account Informatie</legend>
                            <p>
                                <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Gebruikersnaam:</asp:Label>
                                <asp:TextBox ID="UserName" runat="server" CssClass="textEntry"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                    ErrorMessage="Gebruikersnaam is vereist." ToolTip="Gebruikersnaam is vereist."
                                    CssClass="failureNotification" ValidationGroup="PasswordRecoveryValidationGroup">*</asp:RequiredFieldValidator>
                            </p>
                            <p class="submitButton">
                                <asp:Button runat="server" CommandName="Submit" Text="Submit" ID="Button"></asp:Button>
                            </p>
                        </fieldset>
                    </div>
                </UserNameTemplate>
            </asp:PasswordRecovery>
        </div>
        <div id="tab_password">
            <asp:ChangePassword ID="ChangeUserPassword" runat="server" CancelDestinationPageUrl="~/"
                EnableViewState="false" RenderOuterTable="false" SuccessPageUrl="ChangePasswordSuccess.aspx">
                <ChangePasswordTemplate>
                    <span class="failureNotification">
                        <asp:Literal ID="FailureText" runat="server"></asp:Literal>
                    </span>
                    <asp:ValidationSummary ID="ChangeUserPasswordValidationSummary" runat="server" CssClass="failureNotification"
                        ValidationGroup="ChangeUserPasswordValidationGroup" />
                    <div class="accountInfo">
                        <fieldset class="changePassword">
                            <legend>Account Informatie</legend>
                            <p>
                                <asp:Label ID="CurrentPasswordLabel" runat="server" AssociatedControlID="CurrentPassword">Huidig Wachtwoord:</asp:Label>
                                <asp:TextBox ID="CurrentPassword" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="CurrentPasswordRequired" runat="server" ControlToValidate="CurrentPassword"
                                    CssClass="failureNotification" ErrorMessage="Huidig Wachtwoord is vereist." ToolTip="Huidig Wachtwoord is vereist."
                                    ValidationGroup="ChangeUserPasswordValidationGroup">*</asp:RequiredFieldValidator>
                            </p>
                            <p>
                                <asp:Label ID="NewPasswordLabel" runat="server" AssociatedControlID="NewPassword">Nieuw Wachtwoord:</asp:Label>
                                <asp:TextBox ID="NewPassword" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="NewPasswordRequired" runat="server" ControlToValidate="NewPassword"
                                    CssClass="failureNotification" ErrorMessage="Nieuw Wachtwoord is vereist." ToolTip="Nieuw Wachtwoord is vereist."
                                    ValidationGroup="ChangeUserPasswordValidationGroup">*</asp:RequiredFieldValidator>
                            </p>
                            <p>
                                <asp:Label ID="ConfirmNewPasswordLabel" runat="server" AssociatedControlID="ConfirmNewPassword">Bevestig Nieuw Wachtwoord:</asp:Label>
                                <asp:TextBox ID="ConfirmNewPassword" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="ConfirmNewPasswordRequired" runat="server" ControlToValidate="ConfirmNewPassword"
                                    CssClass="failureNotification" Display="Dynamic" ErrorMessage="Bevestig Nieuw Wachtwoord is vereist."
                                    ToolTip="Bevestig Nieuw Wachtwoord is vereist." ValidationGroup="ChangeUserPasswordValidationGroup">*</asp:RequiredFieldValidator>
                                <asp:CompareValidator ID="NewPasswordCompare" runat="server" ControlToCompare="NewPassword"
                                    ControlToValidate="ConfirmNewPassword" CssClass="failureNotification" Display="Dynamic"
                                    ErrorMessage="Wachtwoorden moeten overeenkomen." ValidationGroup="ChangeUserPasswordValidationGroup">*</asp:CompareValidator>
                            </p>
                        </fieldset>
                        <p class="submitButton">
                            <asp:Button ID="CancelPushButton" runat="server" CausesValidation="False" CommandName="Cancel"
                                Text="Annuleer" />
                            <asp:Button ID="ChangePasswordPushButton" runat="server" CommandName="ChangePassword"
                                Text="Verander Wachtwoord" ValidationGroup="ChangeUserPasswordValidationGroup"
                                OnClick="ChangePasswordPushButton_Click" />
                        </p>
                    </div>
                </ChangePasswordTemplate>
            </asp:ChangePassword>
            <br />
            <br />
            <asp:Label ID="LabelElaborateError" runat="server"></asp:Label>
        </div>
        <div id="tab_email">
            <span class="failureNotification">
                <asp:Literal ID="ErrorMessage" runat="server"></asp:Literal>
            </span>
            <asp:ValidationSummary ID="EmailQuestionValidationGroup" runat="server" CssClass="failureNotification"
                ValidationGroup="EmailQuestionValidationGroup" />
            <div class="settings">
                <fieldset class="changeSettings">
                    <legend>Account Informatie</legend>
                    <p>
                        <asp:Label ID="EmailLabel" runat="server">Email:</asp:Label>
                        <asp:TextBox ID="Email" runat="server" CssClass="textEntry"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="Email"
                            CssClass="failureNotification" ErrorMessage="Email is vereist." ToolTip="Email is vereist."
                            ValidationGroup="EmailQuestionValidationGroup">*</asp:RequiredFieldValidator>
                    </p>
                    <p>
                        <asp:Label ID="PasswordLabel" runat="server">Wachtwoord:</asp:Label>
                        <asp:TextBox ID="Password" runat="server" CssClass="textEntry" TextMode="Password"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                            CssClass="failureNotification" ErrorMessage="Wachtwoord is vereist." ToolTip="Wachtwoord is vereist."
                            ValidationGroup="EmailQuestionValidationGroup">*</asp:RequiredFieldValidator>
                    </p>
                    <p>
                        <asp:Label ID="QuestionLabel" runat="server">Veiligheids-Vraag:</asp:Label>
                        <asp:TextBox ID="Question" runat="server" CssClass="textEntry"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="QuestionRequired" runat="server" ControlToValidate="Question"
                            CssClass="failureNotification" ErrorMessage="Beveiligings-Vraag is vereist."
                            ToolTip="Beveiligings-Vraag is vereist." ValidationGroup="EmailQuestionValidationGroup">*</asp:RequiredFieldValidator>
                    </p>
                    <p>
                        Kies een vraag die alleen jij weet en een antwoord dat je niet geneigd bent te vergeten.
                        Je kunt meerdere vragen invoeren; gebruik dan hetzelfde leesteken om de antwoorden
                        te scheiden bv een punt. Je hoeft geen vraagtekens of volzinnen in te voeren. Het
                        antwoord wordt versleuteld opgeslagen.
                    </p>
                    <p>
                        <asp:Label ID="AnswerLabel" runat="server">Antwoord:</asp:Label>
                        <asp:TextBox ID="Answer" runat="server" CssClass="textEntry"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="AnswerRequired" runat="server" ControlToValidate="Answer"
                            CssClass="failureNotification" ErrorMessage="Antwoord op beveiligingsvraag is vereist."
                            ToolTip="Antwoord op beveiligingsvraag is vereist." ValidationGroup="EmailQuestionValidationGroup">*</asp:RequiredFieldValidator>
                    </p>
                </fieldset>
                <asp:Label ID="EmailQuestion" runat="server" Text="Gegevens zijn opgeslagen" CssClass="notificationOK"
                    Visible="false"></asp:Label>
                <p class="submitButton">
                    <asp:Button ID="saveEmailQuestion" runat="server" Text="Opslaan" ValidationGroup="EmailQuestionValidationGroup"
                        OnClick="saveEmailQuestion_Click" />
                </p>
            </div>
        </div>
    </div>
</asp:Content>
